import org.apache.spark.sql.SparkSession

val spark = SparkSession.builder
val salesDF = spark.read.format("csv")
  .option("header", "true")
  .option("inferSchema", "true")
  .load("sales_data.csv")

val filteredDF = salesDF.filter($"Quantity" > 15)


val sortedDF = filteredDF.orderBy($"Product")


sortedDF.show()

